import { createApp } from 'vue'
import { Toast } from 'vant'
import 'vant/es/toast/style'
import 'normalize.css'

import App from './App.vue'
import '../../style/common.less'

String.prototype.replaceAll = function (s1, s2) {
  return this.replace(new RegExp(s1, 'gm'), s2)
}

if (import.meta.env.MODE.trim() === 'beta') {
  new VConsole()
}

const app = createApp(App)

app.config.globalProperties.$toast = Toast

app.mount('#app')
